﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="SpecialDate.aspx.cs" Inherits="WorkTime_SpecialDate" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Titile" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" Runat="Server">
<InfoLight:WebDataSource ID="Master" runat="server" AutoApply="True" WebDataSetID="WMaster" AllowAdd="True" AllowDelete="True" AllowPrint="True" AllowUpdate="True" AlwaysClose="False" AutoApplyForInsert="False" AutoRecordLock="False" AutoRecordLockMode="NoneReload" CacheDataSet="False" CommandName="" CommandText="" DataMember="SpecialDate" Eof="True" KeyValues="" LastIndex="-1" Marker="'" MasterDataSource="" PacketRecords="100" QuotePrefix="[" QuoteSuffix="]" RemoteName="" SelectCommand="" TableName="">
        </InfoLight:WebDataSource>
         <infolight:webdatasource id="wdsDatePrepty" runat="server" selectalias="Usasdb" selectcommand="Select * from []">
        </infolight:webdatasource>
        <infolight:webdefault id="wdSpecialDate" runat="server" datamember="SpecialDate"
            datasourceid="Master">
            <fields>
      <InfoLight:DefaultFieldItem FieldName="DId" DefaultValue="0" />
   </fields>
        </infolight:webdefault>
        <infolight:webvalidate id="wvSpecialDate" runat="server" datamember="SpecialDate"
            datasourceid="Master" duplicatecheck="False" duplicatecheckmode="ByLocal" forecolor="Red"
            validatechar="*" validatecolor="Red" validatestyle="ShowLable">
            <fields>
<InfoLight:ValidateFieldItem FieldName="WorkDay" CheckNull="True"></InfoLight:ValidateFieldItem>
   </fields>
        </infolight:webvalidate>
        <infolight:webnavigator id="WebNavigator1" runat="server"
            bindingobject="wgvMaster" width="100%" statusstrip="WebStatusStrip1"
            showdatastyle="GridStyle" CssClass="NavigatorBar" CtlHeight="25">
            <navcontrols>
                <InfoLight:ControlItem ControlName="First" ControlText="掸" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/first_C.gif" MouseOverImageUrl="../image/uipics/first2_C.gif"
                    Size="48" DisenableImageUrl="../image/uipics/first3_C.gif" />
                <InfoLight:ControlItem ControlName="Previous" ControlText="掸" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/previous_C.gif" MouseOverImageUrl="../image/uipics/previous2_C.gif"
                    Size="48" DisenableImageUrl="../image/uipics/previous3_C.gif" />
                <InfoLight:ControlItem ControlName="Next" ControlText="掸" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/next_C.gif" MouseOverImageUrl="../image/uipics/next2_C.gif"
                    Size="48" DisenableImageUrl="../image/uipics/next3_C.gif" />
                <InfoLight:ControlItem ControlName="Last" ControlText="ソ掸" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/last_C.gif" MouseOverImageUrl="../image/uipics/last2_C.gif"
                    Size="48" DisenableImageUrl="../image/uipics/last3_C.gif" />
                <InfoLight:ControlItem ControlName="Add" ControlText="穝糤" ControlType="Image" ControlVisible="True"
                    ImageUrl="../image/uipics/add_C.gif" MouseOverImageUrl="../image/uipics/add2_C.gif"
                    Size="48" DisenableImageUrl="../image/uipics/add3_C.gif" />
                <InfoLight:ControlItem ControlName="Apply" ControlText="郎" ControlType="Image" ControlVisible="True"
                    ImageUrl="../image/uipics/apply_C.gif" MouseOverImageUrl="../image/uipics/apply2_C.gif"
                    Size="48" DisenableImageUrl="../image/uipics/apply3_C.gif" />
                <InfoLight:ControlItem ControlName="Abort" ControlText="斌" ControlType="Image" ControlVisible="True"
                    ImageUrl="../image/uipics/abort_C.gif" MouseOverImageUrl="../image/uipics/abort2_C.gif"
                    Size="48" DisenableImageUrl="../image/uipics/abort3_C.gif" />
                <InfoLight:ControlItem ControlName="Query" ControlText="琩高" ControlType="Image" ControlVisible="True"
                    ImageUrl="../image/uipics/query_C.gif" MouseOverImageUrl="../image/uipics/query2_C.gif"
                    Size="48" DisenableImageUrl="../image/uipics/query3_C.gif" />
                <InfoLight:ControlItem ControlName="Print" ControlText="ゴ" ControlType="Image" ControlVisible="False"
                    ImageUrl="../image/uipics/print_C.gif" MouseOverImageUrl="../image/uipics/print2_C.gif"
                    Size="48" DisenableImageUrl="../image/uipics/print3_C.gif" />
                <InfoLight:ControlItem ControlName="Export" ControlType="Image" ControlVisible="False"
                    DisenableImageUrl="../Image/UIPics/Export3_C.gif" ImageUrl="../Image/UIPics/Export_C.gif"
                    MouseOverImageUrl="../Image/UIPics/Export2_C.gif" Size="48" />
            </navcontrols>
            <navstates>
                <InfoLight:WebNavigatorStateItem StateText="Initial" />
                <InfoLight:WebNavigatorStateItem StateText="Browsed" />
                <InfoLight:WebNavigatorStateItem StateText="Inserting" />
                <InfoLight:WebNavigatorStateItem StateText="Editing" />
                <InfoLight:WebNavigatorStateItem StateText="Applying" />
                <InfoLight:WebNavigatorStateItem StateText="Changing" />
                <InfoLight:WebNavigatorStateItem StateText="Querying" />
                <InfoLight:WebNavigatorStateItem StateText="Printing" />
            </navstates>
            <queryfields>
                <InfoLight:WebQueryField Caption="编号" Condition="" DefaultValue="" FieldName="DId"
                    Mode="" />
                <InfoLight:WebQueryField Caption="日期(包含)" Condition="%%" DefaultValue="" FieldName="WorkDay"
                    Mode="TextBox" />
                <InfoLight:WebQueryField Caption="特殊日期描述(包含)" Condition="%%" DefaultValue="" FieldName="DateDes"
                    Mode="" />
            </queryfields>
        </infolight:webnavigator>
        <infolight:webgridview id="wgvMaster" runat="server" cellpadding="5" datasourceid="Master"
        forecolor="#333333" width="100%" aborticonurl="../Image/UIPics/Abort.gif" addiconurl="../Image/UIPics/Add.gif"
        applyiconurl="../Image/UIPics/Apply.gif" canceliconurl="../Image/UIPics/Cancel.gif"
        mouseoveraborticonurl="../Image/UIPics/Abort2.gif" mouseoveraddiconurl="../Image/UIPics/Add2.gif"
        mouseoverapplyiconurl="../Image/UIPics/Apply2.gif" mouseovercanceliconurl="../Image/UIPics/Cancel2.gif"
        mouseoverokiconurl="../Image/UIPics/OK2.gif" mouseoverqueryiconurl="../Image/UIPics/Query2.gif"
        okiconurl="../Image/UIPics/OK.gif" 
        queryiconurl="../Image/UIPics/Query.gif" headerstylewrap="False"
        backcolor="White" bordercolor="White" borderstyle="Groove" borderwidth="2px"
        datamember="SpecialDate" allowsorting="True" PageSize="15">
        <pagersettings mode="NumericFirstLast" />
        <footerstyle backcolor="#507CD1" forecolor="White" font-bold="True"></footerstyle>
        <navcontrols>
<InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/add2.gif" ControlText="add" ControlName="Add" ControlType="Image" ImageUrl="../image/uipics/add.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/ok2.gif" ControlText="Insert" ControlName="OK" ControlType="Image" ImageUrl="../image/uipics/ok.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/cancel2.gif" ControlText="cancel" ControlName="Cancel" ControlType="Image" ImageUrl="../image/uipics/cancel.gif"></InfoLight:ControlItem>
</navcontrols>
        <columns>
<asp:TemplateField ShowHeader="False"><EditItemTemplate>
<asp:ImageButton id="ImageButton1" runat="server" Text="Update" CausesValidation="True" ImageUrl="~/Image/UIPics/OK.gif" CommandName="Update" __designer:wfdid="w3"></asp:ImageButton>&nbsp;<asp:ImageButton id="ImageButton2" runat="server" Text="Cancel" CausesValidation="False" ImageUrl="~/Image/UIPics/Cancel.gif" CommandName="Cancel" __designer:wfdid="w4"></asp:ImageButton>
</EditItemTemplate>
    <headerstyle wrap="False" />
<ItemTemplate>
<asp:ImageButton id="ImageButton3" runat="server" Text="Edit" CausesValidation="False" ImageUrl="~/Image/UIPics/Edit.gif" CommandName="Edit" __designer:wfdid="w1"></asp:ImageButton>&nbsp;<asp:ImageButton id="ImageButton4" runat="server" Text="Delete" CausesValidation="False" ImageUrl="~/Image/UIPics/Delete.gif" CommandName="Delete" __designer:wfdid="w2"></asp:ImageButton>
</ItemTemplate>
</asp:TemplateField>
                <asp:BoundField DataField="DId" HeaderText="编号" SortExpression="DId" ReadOnly="True" />
                <asp:TemplateField HeaderText="日期" SortExpression="WorkDay">
                    <edititemtemplate>
<InfoLight:WebDateTimePicker id="wdtpSpecialDateWorkDayE" runat="server" Width="100px" Text='<%# Bind("WorkDay","{0:yyyy-MM-dd}") %>' ToolTip="WorkDay" Localize="False" MaxYear="2050" MinYear="1950" UseButtonImage="True" DateFormat="ShortDate" DateTimeType="DateTime" __designer:wfdid="w13"></InfoLight:WebDateTimePicker> 
</edititemtemplate>
                    <footertemplate>
<InfoLight:WebDateTimePicker id="wdtpSpecialDateWorkDayF" runat="server" Width="100px" Text='<%# Bind("WorkDay","{0:yyyy-MM-dd}") %>' ToolTip="WorkDay" Localize="False" MaxYear="2050" MinYear="1950" UseButtonImage="True" DateFormat="ShortDate" DateTimeType="DateTime" __designer:wfdid="w14"></InfoLight:WebDateTimePicker> 
</footertemplate>
                    <itemtemplate>
<asp:Label id="lSpecialDateWorkDay" runat="server" Text='<%# Bind("WorkDay","{0:yyyy-MM-dd}") %>' ToolTip="WorkDay" __designer:wfdid="w12"></asp:Label> 
</itemtemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="日期分类" SortExpression="DatePrepty">
                    <edititemtemplate>
<InfoLight:WebDropDownList id="wddSpecialDateDatePreptyE" runat="server" Width="130px" __designer:wfdid="w16" Filter="" DriverObject="" AutoInsertEmptyData="False" OnlyShowSelectText="False" SelectedValue='<%# Bind("DatePrepty") %>' FilterObject=""><asp:ListItem Selected="True" Value="1">休息日调工作日</asp:ListItem>
<asp:ListItem Value="2">法定假日</asp:ListItem>
<asp:ListItem Value="3">工作日调休息日</asp:ListItem>
</InfoLight:WebDropDownList> 
</edititemtemplate>
                    <footertemplate>
<InfoLight:WebDropDownList id="wddSpecialDateDatePreptyE" runat="server" Width="130px" __designer:wfdid="w18" Filter="" DriverObject="" AutoInsertEmptyData="False" OnlyShowSelectText="False" SelectedValue='<%# Bind("DatePrepty") %>' FilterObject=""><asp:ListItem Selected="True" Value="1">休息日调工作日</asp:ListItem>
<asp:ListItem Value="2">法定假日</asp:ListItem>
<asp:ListItem Value="3">工作日调休息日</asp:ListItem>
</InfoLight:WebDropDownList>
</footertemplate>
                    <itemtemplate>
<InfoLight:WebDropDownList id="wddSpecialDateDatePreptyE" runat="server" Width="130px" __designer:wfdid="w19" Filter="" DriverObject="" AutoInsertEmptyData="False" OnlyShowSelectText="True" SelectedValue='<%# Bind("DatePrepty") %>' FilterObject=""><asp:ListItem Selected="True" Value="1">休息日调工作日</asp:ListItem>
<asp:ListItem Value="2">法定假日</asp:ListItem>
<asp:ListItem Value="3">工作日调休息日</asp:ListItem>
</InfoLight:WebDropDownList>
</itemtemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="DateDes" HeaderText="特殊日期描述" SortExpression="DateDes" />
                <asp:TemplateField HeaderText="是否为工作日" SortExpression="IsWorkingDay">
                    <edititemtemplate>
<asp:CheckBox id="wdtpSpecialDateIsWorkingDayE" runat="server" ToolTip="IsWorkingDay" __designer:wfdid="w21" Checked='<%# Bind("IsWorkingDay") %>'></asp:CheckBox> 
</edititemtemplate>
                    <footertemplate>
<asp:CheckBox id="wdtpSpecialDateIsWorkingDayE" runat="server" ToolTip="IsWorkingDay" __designer:wfdid="w23" Checked='<%# Bind("IsWorkingDay") %>'></asp:CheckBox>
</footertemplate>
                    <itemtemplate>
<asp:Label id="lSpecialDateIsWorkingDay" runat="server" Text='<%# Eval("IsWorkingDay").Equals(true) ? "是":"否" %>' ToolTip="IsWorkingDay" __designer:wfdid="w20"></asp:Label> 
</itemtemplate>
                </asp:TemplateField>
</columns>
        <rowstyle backcolor="#EFF3FB"></rowstyle>
        <editrowstyle backcolor="#2461BF"></editrowstyle>
        <selectedrowstyle backcolor="#D1DDF1" forecolor="#333333" font-bold="True"></selectedrowstyle>
        <pagerstyle backcolor="LightBlue" forecolor="White" horizontalalign="Center"></pagerstyle>
        <headerstyle backcolor="DeepSkyBlue" forecolor="White" font-bold="True"></headerstyle>
        <alternatingrowstyle backcolor="White" bordercolor="White"></alternatingrowstyle>
        <addnewrowcontrols>
                <InfoLight:AddNewRowControlItem ControlID="wdtpSpecialDateWorkDayF" ControlType="DateTimePicker"
                    FieldName="WorkDay" />
                <InfoLight:AddNewRowControlItem ControlID="wddSpecialDateDatePreptyE" ControlType="DropDownList"
                    FieldName="DatePrepty" />
                <InfoLight:AddNewRowControlItem ControlID="wdtpSpecialDateIsWorkingDayE" ControlType="CheckBox"
                    FieldName="IsWorkingDay" />
            </addnewrowcontrols>
    </infolight:webgridview>
</asp:Content>

